You are here: Trading System Programming > Reference > Classes > Order > Order Methods > setOrderId

setOrderId

The setOrderId method sets the orderId for the order. OrderIds are typically used by the trading broker.

Syntax

setOrderId(orderId);

Parameters

orderId

String value identifying an orderId.

Remarks

OrderIds are needed whenever the trading system places order modify or cancel so that the order could be identified by the trading broker.

Example

See placeOrderModify() in Account class for an example on how to use setOrderId() method.

 


Copyright © 2006-2009 ActiveTick LLC